from flask_redis import FlaskRedis

# 创建redis数据库客户端的连接
redis_client = FlaskRedis(host='127.0.0.1', port=6379, db=0)